import os
from dotenv import load_dotenv



load_dotenv()

class Settings:

    # 数据库
	DB_HOST: str = os.getenv("DB_HOST", "localhost")
	DB_PORT: int = int(os.getenv("DB_PORT", 3306))
	DB_USER: str = os.getenv("DB_USER", "root")
	DB_PASSWORD: str = os.getenv("DB_PASSWORD", "root")
	DB_NAME: str = os.getenv("DB_NAME", "finance")

	# 服务器
	SERVER_HOST: str = os.getenv("SERVER_HOST", "localhost")
	SERVER_PORT: int = int(os.getenv("SERVER_PORT", 90))


settings = Settings()
